/**
  ******************************************************************************
  * @file    Project/STM32F4xx_StdPeriph_Templates/main.h 
  * @author  MCD Application Team
  * @version V1.1.0
  * @date    18-January-2013
  * @brief   Header for main.c module
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */
  
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __WIZCHIP_MAIN_H
#define __WIZCHIP_MAIN_H

#include "types.h"
#include "utility.h"
#include "loopback.h"
#include "ping.h"
#include "w5500.h"
#include "socket.h"
#include "wizchip_conf.h"

/* Includes ------------------------------------------------------------------*/


/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#define DATA_BUF_SIZE   1024

#define WIZ_SCLK            PIN14_IDX          //PTB14
#define WIZ_MISO            PIN15_IDX          //PTB15
#define WIZ_MOSI            PIN16_IDX          //PTB16
#define WIZ_SCS             PIN17_IDX          //PTB17
#define WIZ_INTn            PIN3_IDX           //PTD3
#define WIZ_RSTn            PIN4_IDX           //PTD4

#ifndef SPI_DMA
#define SPI_DMA
#endif


/* Exported functions ------------------------------------------------------- */
int wizchip_Hard_INIT(void);
void wizchip_Main(void);

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
